package org.ourgrid.broker.business.scheduler.workqueue.xmlcreator;

public class OperationSucceedXMLCreator implements XMLCreatorIF{

	/**
	 * <OPERATION_SUCCEED errorMessage='String' serializable='String'/>
	 */
	public String getXML(String errorMessage, String serializable){
		
		StringBuffer buffer = new StringBuffer();
		
		String msg = "";
		
		if (errorMessage != null) {
			msg = errorMessage;
		}
		
		buffer.append("<OPERATION_SUCCEED ");
		buffer.append("errorMessage='" + msg + "' ");
		buffer.append("serializable='" + serializable + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	}
}
